package com.example.itcacp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.itcacp.entity.BrowseHistory;
import com.example.itcacp.service.impl.BrowseHistoryServiceImpl;
import com.github.pagehelper.PageInfo;

public interface BrowseHistoryService extends IService<BrowseHistory> {


    /**
     * 添加浏览记录
     * */
    void addBrowseHistory(BrowseHistory browseHistory);

    /**
     * 分页查询所有浏览记录
     * */
    PageInfo<BrowseHistory> getBrowseHistoryByTimeRange(Integer pageNum, Integer pageSize, Long userId, BrowseHistoryServiceImpl.TimeRange timeRange);
}
